package cm.tl.pms.enums.base;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 政务云部署
 非政务云部署
 不涉及
 */
@Getter
@AllArgsConstructor(access= AccessLevel.PRIVATE)
public enum DeployTypeEnum implements IEnum {
    GOVERNMENT_CLOUD ("政务云部署", 1),
    NO_GOVERNMENT_CLOUD("非政务云部署", 2),
    NOT_INVOLVED("不涉及", 3);
    private final String name;
    private final Integer value;

    public static DeployTypeEnum nameOf(Integer value) {
        for (DeployTypeEnum e : DeployTypeEnum.values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }
}
